package com.uex.dev.manage.admin.vo.project;

import com.uex.dev.manage.admin.po.DevicePO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author lzs
 * @create 2024/02/28
 * @description
 */
@Data
public class ProjectDeviceInfoResp {
    @Schema(description = "设备Id")
    private Integer id;
    @Schema(description = "设备唯一标识")
    private String deviceToken;

    public static ProjectDeviceInfoResp fromPO(DevicePO devicePO) {
        ProjectDeviceInfoResp projectDeviceInfoResp = new ProjectDeviceInfoResp();
        BeanUtils.copyProperties(devicePO, projectDeviceInfoResp);
        return projectDeviceInfoResp;
    }
}

